namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 通信配置查询对象
    /// </summary>
    public class CommunicationConfigQueryDto : PagerInfo
    {
    }

    /// <summary>
    /// 通信配置输入输出对象
    /// </summary>
    public class CommunicationConfigDto
    {
        [Required(ErrorMessage = "序号不能为空")]
        public int Id { get; set; }

        public string LineCode { get; set; }

        public string StationCode { get; set; }

        public string PlcIp { get; set; }

        public string ItemAddress { get; set; }

        public int? ItemNo { get; set; }

        public string ItemName { get; set; }

        public int? CommunicateRank { get; set; }

        public string ItemType { get; set; }

        public string TriggerCondition { get; set; }

        public string ItemDataType { get; set; }

        public string ItemWriteinValue { get; set; }

        public string SubscribeState { get; set; }

        public string IsEnabled { get; set; }

        public DateTime? CreationTime { get; set; }

        public string CreatorName { get; set; }

        public int? BlockAddress { get; set; }

        public int? BlockLength { get; set; }

        [ExcelColumn(Name = "点位类型")]
        public string ItemTypeLabel { get; set; }
    }
}